package club.cearnach.api.dao;

import club.cearnach.entity.MovieLanguage;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @author 阮胜
 * @date 2018/5/12 13:44
 */
public interface IMovieLanguageDao extends JpaRepository<MovieLanguage, Integer> {
    Optional<MovieLanguage> findByLanguage(String language);

    Optional<MovieLanguage> findByLanguageAndIdNot(String language, Integer id);
}
